home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / raytr / r3frsurf.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.2 KB  |  92 lines

  1.  
  2. // JavaScript wrapper for r3frsurf.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_FRSURFACE_H = 1;
  7. include("real/raytr/r3frhob.js")
  8. include("oops/r3vector.js")
  9.  
  10.  
  11. var R3CLID_FRSURFACE = 438;
  12.  
  13.  
  14.  
  15.  
  16.  
  17. R3FRSURFM_ISRENDERCLASS = 438000;
  18.  
  19. function mR3FRSURFM_ISRENDERCLASS() {
  20.   DoA(this.r3obj, 438000, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23.  
  24. R3FRSURFM_CHANNELQUERY = 438001;
  25.  
  26. function mR3FRSURFM_CHANNELQUERY() {
  27.   DoA(this.r3obj, 438001, 0, R3TID_INTEGER, 0);
  28. }
  29.  
  30. // Description: enumerates material etc. objects mapped to this surface * by R3SendMsgA(cbobj, cbmth, mappedobject);
  31.  
  32. R3FRSURFM_ENUMMAPPEDOBJECTS = 438002;
  33.  
  34. function mR3FRSURFM_ENUMMAPPEDOBJECTS() {
  35.   DoA(this.r3obj, 438002, 0, R3TID_INTEGER, 0);
  36. }
  37.  
  38.  
  39.  
  40.  
  41. R3FRSURFA_PointRenderAttrs = 438501;
  42. function SetR3FRSURFA_PointRenderAttrs(value) {
  43.   R3Set(this.r3obj, R3FRSURFA_PointRenderAttrs, value, R3TID_OBJECT, 0); 
  44. }
  45.  
  46. function GetR3FRSURFA_PointRenderAttrs() {
  47.   return R3ToJS(R3Get(this.r3obj, R3FRSURFA_PointRenderAttrs, R3TID_OBJECT, 0)); 
  48. }
  49.  
  50. R3FRSURFA_MinU = 438503;
  51. function GetR3FRSURFA_MinU() {
  52.   return R3Get(this.r3obj, R3FRSURFA_MinU, R3TID_FLOAT, 0); 
  53. }
  54.  
  55. R3FRSURFA_MaxU = 438504;
  56. function GetR3FRSURFA_MaxU() {
  57.   return R3Get(this.r3obj, R3FRSURFA_MaxU, R3TID_FLOAT, 0); 
  58. }
  59.  
  60. R3FRSURFA_MinV = 438505;
  61. function GetR3FRSURFA_MinV() {
  62.   return R3Get(this.r3obj, R3FRSURFA_MinV, R3TID_FLOAT, 0); 
  63. }
  64.  
  65. R3FRSURFA_MaxV = 438506;
  66. function GetR3FRSURFA_MaxV() {
  67.   return R3Get(this.r3obj, R3FRSURFA_MaxV, R3TID_FLOAT, 0); 
  68. }
  69.  
  70.  
  71.  
  72. function r3Frsurface () { 
  73.    this.base = r3God;
  74.    if(arguments.length) {
  75.       this.base(R3CLID_FRSURFACE, arguments);
  76.    }
  77.    // Methods
  78.    this.ISRENDERCLASS=mR3FRSURFM_ISRENDERCLASS;
  79.    this.CHANNELQUERY=mR3FRSURFM_CHANNELQUERY;
  80.    this.ENUMMAPPEDOBJECTS=mR3FRSURFM_ENUMMAPPEDOBJECTS;
  81.  
  82.    // Attributes
  83.    this.GetPointRenderAttrs=GetR3FRSURFA_PointRenderAttrs;
  84.    this.SetPointRenderAttrs=SetR3FRSURFA_PointRenderAttrs;
  85.    this.GetMinU=GetR3FRSURFA_MinU;
  86.    this.GetMaxU=GetR3FRSURFA_MaxU;
  87.    this.GetMinV=GetR3FRSURFA_MinV;
  88.    this.GetMaxV=GetR3FRSURFA_MaxV;
  89. }
  90.  
  91. r3Frsurface.prototype=new r3Frhob;
  92. // r3frsurf.h_H